{% if result.status == 'FAILURE' %}
    <span class="badge bg-danger">Failed</span>
{% elif result.status == 'PENDING' %}
    <span class="badge bg-body-secondary border">Pending</span>
{% elif result.status == 'STARTED' %}
    <span class="badge bg-warning">Running</span>
{% elif result.status == 'SUCCESS' %}
    <span class="badge bg-success">Completed</span>
{% else %}
    <span class="badge bg-body-secondary border">N/A</span>
{% endif %}
